//
//  GMGroup.h
//  GroupManager
//
//  Created by 欧阳 鹏 on 11-10-16.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>


@interface GMGroup : NSObject {
	ABRecordRef group;
	CFMutableArrayRef personArray;
	NSMutableArray *persons;
}

@property(nonatomic, assign) ABRecordRef group;
@property(nonatomic, assign) CFMutableArrayRef personArray;
@property(nonatomic, retain) NSMutableArray* persons;

+ (id)groupWithGroup:(ABRecordRef)_group;
- (id)initWithGroup:(ABRecordRef)_group;
- (NSString*)getName;
- (void)setName:(NSString*)name;
- (void)readAllPersonsOfGroup;

- (int)getPersonCount;
- (void)addMember:(ABRecordRef)member;
- (void)removeMemberAtIndex:(NSUInteger)index;

@end
